<?php
include("./include/config.inc.php");
if(!isset($_SESSION['s_activId']))
{
  header('location:checkLogin.php');
}
$date = date('Y-m-d');
$narration = $_REQUEST['narration'];
$loand     = $_REQUEST['loanId'];

$updateLoan = "UPDATE loan 
                  SET isSold = 'Y', soldNarration = '".$narration."', soldDate = '".$date."'
                WHERE loanId =".$loand;
$updateLoanRes = mysql_query($updateLoan);
header('location:soldItem.php');
?>